package com.meilai.project.service.business.sale.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.meilai.project.entity.business.sale.BillSaleProxyMediaDetail;
import com.meilai.project.mapper.business.sale.BillSaleProxyMediaDetailMapper;
import com.meilai.project.service.business.sale.BillSaleProxyMediaDetailService;
import com.meilai.project.vo.business.sale.BillSaleProxyMediaDetailVO;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

@Service
public class BillSaleProxyMediaDetailServiceImpl extends ServiceImpl<BillSaleProxyMediaDetailMapper, BillSaleProxyMediaDetail> implements BillSaleProxyMediaDetailService {
    @Override
    public int deleteByBillSaleId(Long bill_sale_id) {
        return baseMapper.deleteByBillSaleId(bill_sale_id);
    }

    @Override
    public List<BillSaleProxyMediaDetailVO> selectByBillSaleId(Long bill_sale_id) {
        return baseMapper.selectByBillSaleId(bill_sale_id);
    }

    @Override
    public BigDecimal getTotalExecutedAmount(Long contract_id) {
        return baseMapper.getTotalExecutedAmount(contract_id);
    }
}
